//
// Created by zhupi on 2024/10/1.
//

#ifndef DEMO2_TREE_ITEM_ICON_CTRL_H
#define DEMO2_TREE_ITEM_ICON_CTRL_H

#include <QObject>
#include <map>
#include <QIcon>

class TreeItemIconCtrl : public QObject
{
Q_OBJECT
public:
    static TreeItemIconCtrl &GetIns();
    ~TreeItemIconCtrl() {}
    // 初始化图标
    void Init();
    bool GetIcon(const std::string &type, QIcon &icon);
private:
    TreeItemIconCtrl() { Init(); }

    std::map< std::string, QIcon> iconMap_;
};


#endif //DEMO2_TREE_ITEM_ICON_CTRL_H
